﻿namespace Infrastructure.Helpers
{
   public class SearchHelper
   {
      public static bool IsAllowed(bool isForSearch, bool isNotAutomatic, bool isHierarchy)
      {
         bool isAllowed = !isForSearch || !isNotAutomatic && isHierarchy;

         return isAllowed;
      }
   }
}
